import { PageReqParams } from '@/api/types'

export enum TagIsUse {
  NOUSE,
  USE,
}

export interface TagItem {
  id: string
  tagName: string
  createTime: string
  updateTime: string
  addUser: string
  modifyUser: string
  isUse: TagIsUse
  refList?: { refId: string; categoryId: string; categoryName: string }[]
}

export interface OptionTagReq {
  id?: string
  tagName: string
}

export interface QueryTagReq extends PageReqParams {
  categoryId?: string
  tagName?: string
  isUse?: TagIsUse
}

export interface BatchBindTagClassReq {
  categoryList: string[]
  relationList: string[]
}
